<template>
  <div class="enterpage">
    <div>
      <div class="pic">
        <img src="@/assets/imgs/shenhe_fail@2x.png" />
      </div>
      <p class="p1">很抱歉资料审核失败</p>
      <p class="p2">审核失败原因：{{msg.refuseType}}</p>
      <p class="p3">{{msg.refuseRemark}}</p>
      <p @click="xiuGai" class="text_down">修改信息</p>
    </div>
  </div>
</template>

<script>
import Utils from '@/common/pakjUtils';
export default {
  data() {
    return {
      title: '注册失败',
      msg: {}
    };
  },
  mounted() {
    let xinxi = sessionStorage.getItem('errMsg');
    if (xinxi) {
      this.msg = JSON.parse(xinxi);
    }
    try {
      this.setHeader(this.title);
    } catch (e) {
      console.log(e);
    }
  },
  methods: {
    xiuGai() {
      window.location.href =
        '/intercitydriver/fillInfo?haveCar=' +
        this.$route.query.haveCar +
        '&isCity=' +
        this.$route.query.isCity +
        '&cate=' +
        this.$route.query.cate;
      // this.$router.push({
      //     name: 'fillInfo',
      //     query: {
      //         haveCar: this.$route.query.haveCar,
      //         isCity: this.$route.query.isCity,
      //         cate: this.$route.query.cate
      //     }
      // });
    },
    // 设置头部信息
    setHeader(text) {
      /* eslint-disable */
      var os = Utils.getOSName();
      if ((os == 'Linux' || os == 'Android') && handler) {
        //  handler.setTopText(JSON.stringify(text));
      } else if ((os == 'iOS' || os == 'MacOSX') && window.webkit) {
        window.webkit.messageHandlers.setTopText.postMessage(text);
      }
    }
  }
};
</script>

<style type="text" scoped>
p {
  display: block;
  margin-block-start: 0px;
  margin-block-end: 0px;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
}

h6 {
  display: block;
  font-size: 22px;
  margin-block-start: 0em;
  margin-block-end: 0em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: 400;
}
.pic img {
  width: 100%;
  height: 100%;
}
.text_hd {
  font-size: 28px;
  color: #333;
  text-align: center;
  margin-top: 30px;
}
.text_down {
  position: absolute;
  width: 100%;
  background-color: #ff6917;
  color: #fff;
  height: 88px;
  line-height: 88px;
  text-align: center;
  font-size: 36px;
  bottom: 0px;
}
.p1,
.p2,
.p3 {
  margin: 10px 30px;
}
.p1 {
  font-size: 32px;
  color: #333;
  text-align: center;
}
.p2 {
  font-size: 26px;
  color: #666;
}
</style>
